package com.hfb.mashibing.alip8.spring.mq.rabbit.topic;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 通配符模式
 */
@Component
public class TopicConsumer {

    /**
     * 接收队列消息
     * @param msg
     */
    @RabbitListener(queues = "item_queue")
    public void myListener1(String msg){
        System.out.printf("消费者接收到消息：%s",msg);
    }

}
